package 集合;

import java.util.ArrayList;
import java.util.HashMap;

public class Test {
    public static void main(String[] args) {
    	ArrayList<HashMap<String, Object>> listData = new ArrayList<HashMap<String, Object>>();
		  int number = 0;
		  String name;
		  String user;
		  HashMap<String, Object> map = new HashMap<String, Object>();    
		  while (number < 20) {
		      if(number==19)
		      {
		          name ="zcl";
		          user ="ewfe";
		      } else{
		           name ="hehe";
		           user ="lailai";
		      }
		      map.put("name",name);
		      map.put("user",user);
		      listData.add(map);
		      number++;
		     System.out.println(listData);
		}
	}
}